package cn.example.beans;

public class ClassB {

    private ClassA classA;

    public ClassB() {
        System.out.println("ClassB 无参构造办法...");
    }

    public ClassB(ClassA classA) {
        this.classA = classA;
    }

    public void method1() {
        System.out.println("ClassB method1...");
    }

}
